//package com.yunhe.common.controller.data;
//
//import com.yunhe.common.model.ResultObject;
//import com.yunhe.common.task.AliTask;
//import com.yunhe.common.task.JsydTask;
//import com.yunhe.common.task.PointNumberTask;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiImplicitParam;
//import io.swagger.annotations.ApiImplicitParams;
//import io.swagger.annotations.ApiOperation;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.HttpStatus;
//import org.springframework.http.ResponseEntity;
//import org.springframework.web.bind.annotation.PathVariable;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//@Api(value = "AbnormalTaskController",description = "异常任务", tags = {"Task_AbnormalTask"})
//@RestController
//@RequestMapping("/{systemId}/abnormalTask")
//public class AbnormalTaskController {
//
//    @Autowired
//    private AliTask aliTask;
//
//    @Autowired
//    private JsydTask jsydTask;
//
//    @Autowired
//    private PointNumberTask pointNumberTask;
//
//    @ApiOperation("执行阿里任务")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "systemId", value = "系统ID", required = true, dataType = "long", paramType = "path")
//    })
//    @RequestMapping(value = "/aliTask", method = RequestMethod.POST)
//    public ResponseEntity<ResultObject> runAliTask(@PathVariable("systemId") Long systemId)
//            throws Exception {
////        aliTask.task();
//        return new ResponseEntity<>(new ResultObject<>(null), HttpStatus.OK);
//    }
//
//    @ApiOperation("执行江苏移动任务")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "systemId", value = "系统ID", required = true, dataType = "long", paramType = "path")
//    })
//    @RequestMapping(value = "/jsydTask", method = RequestMethod.POST)
//    public ResponseEntity<ResultObject> runJsydTask(@PathVariable("systemId") Long systemId)
//            throws Exception {
//        jsydTask.task();
//        return new ResponseEntity<>(new ResultObject<>(null), HttpStatus.OK);
//    }
//
//    @ApiOperation("执行点号处理任务")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "systemId", value = "系统ID", required = true, dataType = "long", paramType = "path")
//    })
//    @RequestMapping(value = "/pointNumberTask", method = RequestMethod.POST)
//    public ResponseEntity<ResultObject> runPointNumberTask(@PathVariable("systemId") Long systemId)
//            throws Exception {
//        pointNumberTask.task();
//        pointNumberTask.socChangeTask();
//        return new ResponseEntity<>(new ResultObject<>(null), HttpStatus.OK);
//    }
//}
